<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

</head>
<body>
    
</body>
</html>
<script>
    var shopping = ["nike背包","adidas运动衫","李宁运动鞋","kappa外套","361°背包"];
    document.write("本次打折商品有："+"<br/>")
    for(var i=0;i<shopping.length;i++){
        document.write(shopping[i]+"<br/>")
    }
    shopping.splice(0,1)
    shopping.push("adidas运动裤")
    document.write("改变后，本次打折商品有："+"<br/>")
    for(var i=0;i<shopping.length;i++){
        document.write(shopping[i]+"<br/>")
    }
    shopping.splice(2,1,"特步运动鞋")
    document.write("改变后，本次打折商品有："+"<br/>")
    for(var i=0;i<shopping.length;i++){
        document.write(shopping[i]+"<br/>")
    }
    document.write("本次打折商品有："+"<br/>")
    document.write(shopping.join("、"))
</script>